/**
 * Created by kira on 17/6/29.
 */

import React from "react";
import Reflux from "reflux";
import store from "./TodoStore";
import action from "./TodoAction";

class TodoComponent extends Reflux.Component {
    constructor(props) {
        super(props);
        this.state = {
            list: ["1"]
        };
        this.store = store;
    }

    render() {
        return (
            <div>
                <button onClick={action.addItem}>ss</button>
                {this.state.items}
            </div>
        )
    }
}

export default TodoComponent